using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Collections;

namespace MapEditor.AI
{
    static class Path
    {
        public static ArrayList Calculate(Point startPos, Point endPos)
        //returns an arraylist of target movement points
        {
            //until we implement pathfinding, just return the final point
            ArrayList myTargetPoints = new ArrayList();
            myTargetPoints.Add(endPos);
            return myTargetPoints;



            ////first cleanse the points down to the map nodes
            //Point myStartPos = new Point(startPos.X, startPos.Y);
            //Point myDestPos = new Point(endPos.X, endPos.Y);
            //ArrayList myTargetPoints = new ArrayList();
            //int Distance = (int)MathUtils.GetDistance(myStartPos, myDestPos)/100;
            //double XDistance = myDestPos.X - myStartPos.X;
            //double YDistance = myDestPos.Y - myStartPos.Y;

            //if (Distance == 0)
            //{
            //    myTargetPoints.Add(new Point(myStartPos.X + (int)(XDistance), myStartPos.Y + (int)(YDistance)));
            //}
       

            //for (int looper = 1; looper <= Distance; looper++)
            //{
            //    myTargetPoints.Add(new Point(myStartPos.X + (int)(looper*(XDistance/Distance)), myStartPos.Y + (int)(looper*(YDistance/Distance))));
            //    //myTargetPoints.Add(new Point((myDestPos.X * 10 + 5), (myDestPos.Y * 10 + 5)));
            //}


            //return myTargetPoints;


        }
    }
}
